package phone.qyg.com.qyg.model;

import android.os.Parcel;

/**
 * 作者：lblbh on 2017/11/28 17:03
 * 邮箱：lanbuhan@163.com
 * 功能：新闻
 */
public class Content extends Base  {

//    public String title;
//    public String more;
//

    /**
     * “id”:213      //新闻id
     “title”:”博物馆展览”     //新闻名称
     “ fixImgUrl”:”http://domain:port/data/2017/04/13/223.jpg” //缩略图
     “source”:”内蒙古自治区文化馆” //来源
     "dateDiff": “4小时前”, // 时间，大于24小时显示几天前，小于1小时显示几分钟前，小于1分钟显示刚刚

     */
    public String source;
    public String dateDiff;
    public String click_count;

    public Content() {}


    public Content(Parcel in) {
        id = in.readInt();
        more = in.readString();
        title = in.readString();
        fixImgUrl = in.readString();
        click_count = in.readString();
        shareAddress = in.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(id);
        dest.writeString(more);
        dest.writeString(title);
        dest.writeString(fixImgUrl);
        dest.writeString(shareAddress);
        dest.writeString(click_count);
    }


    public static final Creator<Content> CREATOR = new Creator<Content>() {
        @Override
        public Content[] newArray(int size) {
            return new Content[size];
        }

        @Override
        public Content createFromParcel(Parcel in) {
            return new Content(in);
        }
    };
}
